#include <string>
#include <iostream>
#include <stdlib.h>
#include <string.h>

using namespace std;

int main()
{
	char str1[10] = "hello";
	char str2[10] = "hello2";

	char buf[25];
	memset(buf, '\0', sizeof(buf));
	memcpy(buf, str1, sizeof(str1));
	memcpy(buf + 10, str2, sizeof(str2));
	for(int i = 0; i < sizeof(buf); ++i)
	{
		if(buf[i] == '\0')
			buf[i] = ' ';
	}
	string str(buf);
	string blank(" ");
	cout << str << blank <<"111" << endl;
	return 0;
}

